package com.yanqu.backendweb.controller;

import com.yanqu.backendweb.service.TSDbInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author duli
 * @version 1.0
 * @date 2020/10/26 17:04
 * @Description
 */
@Controller
@RequestMapping("/dbInfo")
public class DbInfoController {

    @Autowired
    private TSDbInfoService tsDbInfoService;
    /*
     * 新增游戏服
     * */
    @RequestMapping("/add")
    @ResponseBody
    public void add(){
        tsDbInfoService.loadDbToMemory();
    }
}
